package com.example.trackcircuitdiagnosis.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.trackcircuitdiagnosis.entity.FaultTypeEntity;
import com.example.trackcircuitdiagnosis.mapper.FaultTypeMapper;
import com.example.trackcircuitdiagnosis.service.FaultTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 23639
* @description 针对表【fault_type】的数据库操作Service实现
* @createDate 2024-04-23 21:01:14
*/
@Service
public class FaultTypeServiceImpl extends ServiceImpl<FaultTypeMapper, FaultTypeEntity>
    implements FaultTypeService {
    @Autowired
    private FaultTypeMapper faultTypeMapper;

    @Override
    public FaultTypeEntity selectById(Integer id) {
        return faultTypeMapper.selectById(id);
    }


    @Override
    public List<FaultTypeEntity> selectAll() {
        List<FaultTypeEntity> faultTypes = faultTypeMapper.selectAll();
        return faultTypes;
    }

}




